package usw.website.business;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import mvc.struts.action.Action;
import mvc.struts.form.ActionForm;
import usw.website.form.LoginForm;
import usw.website.form.PanduanForm;
import usw.website.service.LoginVO;

public class LoginAction implements Action {

	/**
	 * 
	 */
	@Override
	public String execute(	HttpServletRequest 	request, 
							HttpServletResponse response, 
							ActionForm 			form,
							Map<String, String> actionForward) 
	{
//		LoginForm	loginForm =  (LoginForm)form;
		
//		String	name 	 = loginForm.getName();
//		String	password = loginForm.getPassword();
		
		LoginVO	loginVo = new LoginVO();
		loginVo.setName("Mark");
		loginVo.setPassword("4533d");
		
		request.setAttribute("loginVo", loginVo);
		
		//	This will load Login.jsp file directly
		return "default";
	}

}
